import request from '@/utils/request'

//查询活动审核列表
export function listActivities(data) {
  return request({
    url: '/dev-api/jjrjs/pmActivityOrderInfoController/checkRedPackage',
    method: 'get',
    params: data
  })
}

//通过审核
export function passAudit(userId) {
  return request({
    url: '/dev-api/jjrjs/pmActivityOrderInfoController/submitActivityOrder?requestParam='+userId,
    method: 'get'
  })
}

//驳回审核
export function rejectedAudit() {
  return request({
    url: '/reviewActivities/list',
    method: 'get',
    params: data
  })
}

//作废审核
export function invalidAudit(userId,sourceCode) {
  return request({
    url: '/dev-api/jjrjs/pmActivityOrderInfoController/invalid?userId='+userId+'&activityCode='+sourceCode,
    method: 'get'
  })
}
